import { Controller, Get, Post, Body, Patch, Param, Delete } from '@nestjs/common';
import { ClusterService } from './cluster.service';


@Controller('/api/cluster')
export class ClusterController {
  constructor(private readonly clusterService: ClusterService) {}

  // 获取Namespace列表
  @Get('/namespaces/:agentId')
  getNamespaces(@Param('agentId') agentId: string) {
    return this.clusterService.getNamespaces(agentId);
  }
}
